package com.alibaba.dubbo.demo.impl;

import com.alibaba.dubbo.demo.DemoService;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class DemoServiceImpl implements DemoService {
	@Override
    public List<String> getPermissions(Long id) {
        List<String> demo = new ArrayList<String>();
        demo.add(String.format("Permission_%d", id - 1));
        demo.add(String.format("Permission_%d", id));
        demo.add(String.format("Permission_%d", id + 1));
        return demo;
    }

	@Override
	public Map<String, String> listInfos(String msg) {
		Map<String, String> map = new HashMap<String, String>();
		map.put("Data", "Progress" + msg);
		map.put("Console", "Data" + msg);
		return map;
	}
}
